From ebc720bfdb598d1556968bf5aab19a3c9dc08eb7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 9 Feb 2020 19:34:02 -0500 Subject: [PATCH] Drop gtk_events_pending This was just a thin wrapper around gtk_main_context_pending, which should be used directly instead. --- docs/reference/gtk/gtk4-sections.txt | 1 - gtk/gtkmain.c | 27 --------------------------- gtk/gtkmain.h | 2 -- 3 files changed, 30 deletions(-) diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index 3ef6eeae03..8b503f0337 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -4418,7 +4418,6 @@ gtk_get_default_language gtk_get_locale_direction gtk_init gtk_init_check -gtk_events_pending gtk_main gtk_main_level gtk_main_quit diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 36ec67891d..5e35e9e6af 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1152,33 +1152,6 @@ gtk_main_quit (void) g_main_loop_quit (main_loops->data); } -/** - * gtk_events_pending: - * - * Checks if any events are pending. - * - * This can be used to update the UI and invoke timeouts etc. - * while doing some time intensive computation. - * - * ## Updating the UI during a long computation - * - * |[ - * // computation going on... - * - * while (gtk_events_pending ()) - * gtk_main_iteration (); - * - * // ...computation continued - * ]| - * - * Returns: %TRUE if any events are pending, %FALSE otherwise - */ -gboolean -gtk_events_pending (void) -{ - return g_main_context_pending (NULL); -} - /** * gtk_main_iteration: * diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h index fc9f08b6f9..e2c349a9ba 100644 --- a/gtk/gtkmain.h +++ b/gtk/gtkmain.h @@ -109,8 +109,6 @@ GDK_AVAILABLE_IN_ALL PangoLanguage *gtk_get_default_language (void); GDK_AVAILABLE_IN_ALL GtkTextDirection gtk_get_locale_direction (void); -GDK_AVAILABLE_IN_ALL -gboolean gtk_events_pending (void); GDK_AVAILABLE_IN_ALL void gtk_main (void); -- 2.30.2